package com.blog.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.blog.domain.DTO.AddUserDto;
import com.blog.domain.DTO.UserDto;
import com.blog.domain.DTO.UserInfoDto;
import com.blog.domain.DTO.UserStatusDto;
import com.blog.domain.ResponseResult;
import com.blog.domain.entity.User;

import java.util.List;

/**
 * 用户表(User)表服务接口
 *
 * @author makejava
 * @since 2024-09-08 18:55:57
 */
public interface UserService extends IService<User> {
	ResponseResult userInfo();

	/**前端更新用户信息
	 *
	 * @param user
	 * @return
	 */
	ResponseResult updateUserInfo(User user);

	ResponseResult register(User user);

	ResponseResult getUserList(Integer pageNum, Integer pageSize, UserDto userDto);

	ResponseResult addUser(AddUserDto addUserDto);

	ResponseResult deleteUser(List<Long> ids);

	ResponseResult getUserDetail(Long id);

	/**管理端更新用户信息
	 *
	 * @param userInfoDto
	 * @return
	 */
	ResponseResult adminUpdateUserInfos(UserInfoDto userInfoDto);


	ResponseResult changeStatus(UserStatusDto userStatusDto);
}
